﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Home.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Site.ViewModels.ArticleDetailViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=Model.Article != null ?Html.Encode(Model.Article.Title) : "Bài viết không tồn tại hoặc đã bị xóa bởi người khác"%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MetaContent" runat="server">
    <meta name="page-topic" content='<%=Html.Encode(Model.Article.Title) %>' />
    <meta name="title" content="<%=Html.Encode(Model.Article.Title) %> - Chọn quà, mua quà, tặng quà online muaqua.vn" />
    <meta name="keywords" content="<%=Model.Article.MetaKeyword %>" />
    <meta name="description" content="<%=Model.Article.MetaDescription %>" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%if (Model.Article != null)
  { %>
<div class="clear"></div>
<div class="path">
    <a href="/home">Trang chủ</a>
    <%if (Model.Article.ArticleCategory != null)
      { %>
        <%if (Model.Article.ArticleCategory.ParentArticleCategory != null)
          { %>
            <img src="/images/mq/icon-16-path.png" width="16" height="16" style="vertical-align:middle" />
            <a href="/news/index/<%=Model.Article.ArticleCategory.ParentID %>"><%=Model.Article.ArticleCategory.ParentArticleCategory != null ? Html.Encode(Model.Article.ArticleCategory.ParentArticleCategory.Name) : string.Empty%></a>&nbsp;
        <%} %>
        <img src="/images/mq/icon-16-path.png" width="16" height="16" style="vertical-align:middle" /><a href="/news/index/<%=Model.Article.ArticleCategory.ID %>"><%=Model.Article.ArticleCategory != null ? Html.Encode(Model.Article.ArticleCategory.Name) : string.Empty%></a>&nbsp;
    <%} %>
</div>
<%} %>
<div id="detail-art">
    <h2><%=Html.Encode(Model.Article.Title)%></h2>
    <div class="content-detail-art-date">
        <%=Model.Article.AddDate.ToString("HH:mm")%>&nbsp; | <%=Model.Article.AddDate.ToString("dd/MM/yyyy")%>
    </div>
    <div class="summary-detail-art">
        <%=Html.Encode(Model.Article.Summary) %>           
    </div>
    <div class="content-detail-art" id="content-art">
        <%=Model.Article.ArticleContent%>
    </div>
</div>
<div class="clear">&nbsp;</div>
<%if (Model.Article != null)
  { %>
<% Html.RenderAction("LatestComments","Article", new { id = Model.Article.ID, number=20 }); %>
<% Html.RenderAction("Comment","Article", new { id = Model.Article.ID }); %>
<%} %>
<div class="clear"></div>
<% Html.RenderAction("OtherItems", "news", new { id = Model.Article.ID, number = 10,title="Các tin khác", greaterYN =false}); %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" runat="server">
    <% Html.RenderAction("GetCats", "News", new { number = 10, title = "Muaqua.vn", viewName="Category" }); %>
    <div class="clear mar_t"></div>
    <% Html.RenderAction("Focus", "News", new { number = 5, skip = 0, catid = Model.Article.ArticleCategory != null ? Model.Article.ArticleCategory.ID : SDT.Model.ConfigManager.GetArticle(), title = "Tin tiêu điểm", order = "nViews", orderDir = "desc" }); %>
    <div class="clear mar_t"></div>
    <% Html.RenderAction("Lasted", "Product", new { typeid = 0, catid = 0, holidayid = 0, number = 8, hotYN = 0, newYN = 0, saleYN = 0, promoYN = 0, order = "ID", orderDir = "desc", title = "Sản phẩm nổi bật", viewName = "Hot" }); %>
   <div class="clear"></div>
</asp:Content>
